﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xeno;
using Xeno.Core;
using Xeno.GUI;
using Xeno.Maths;
using Xeno.Module;
using Xeno.Physics;

namespace CyberShade
{

    public class CyberShade : XenoApp
    {
        public XenoTexture2D Frame;
        public CyberShade(int w,int h):base(w,h,"CyberShader ALPHA"){


        }
        public override void DoInit()
        {
            base.DoInit();
            Frame = new XenoTexture2D("App/Art/Gui/FramePaper.jpg");
        }
        private float GuiAng = 0.0f;
        public override void DoPreRender()
        {
            base.DoPreRender();


            GuiAng += 0.001f;

            XuiWidget.Begin2D();

            Cyber2D.Color = new OpenTK.Vector4(0.2f,1f,1f, 0.65f);

            Cyber2D.Rotation = new OpenTK.Vector3(0, GuiAng, 0);

            Cyber2D.Frame(new OpenTK.Vector4(20, 20, 200, 200),Frame);
            
            Cyber2D.Text(new OpenTK.Vector2(30, 30), "Quantum - Episode 1");

            Cyber2D.Frame(new OpenTK.Vector4(80, 80, 200, 200), Frame);

            XuiWidget.End2D();
        }
    }
    class Program
    {
        static void Main(string[] args)
        {

            var cShade = new CyberShade(800, 600);


            Console.WriteLine("Starting -CyberShade-");
            cShade.Run();
            Console.WriteLine("Fin.");




        }
    }
}
